package dao.mapper;
import java.sql.SQLException;
import java.util.List;

import entity.MemorytbEntity;
/**
 *@author JiangFan
 */
public interface MemorytbDAOI {
    /**
     * @param color_name 根据内存名查询内存列表是否存在该内存
     * @return
     */
    MemorytbEntity selectMemoryOne (String color_name) throws SQLException, ClassNotFoundException;

    /**
     * @return 查询所有内存列表信息
     */
    List<MemorytbEntity> selectMemoryAll ()
            throws ClassNotFoundException, SQLException, InstantiationException, IllegalAccessException;

    /**
     * @param me 在内存列表添加内存值
     *
     * @return
     */
    int insertMemory (MemorytbEntity me) throws SQLException, ClassNotFoundException;

}